﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;

public class EditorCamera : Camera
{
    // Enums here
    private static float kVelocity = 20.0f;

    // Member vars here
    private float m_scale;

    public EditorCamera(Vector3 position)
        : base(position)
    {
        m_scale = 1.0f;
    }

    public override void update(double dt)
    {
        base.update(dt);
    }

    /**
     * Set the scale that we draw our screen at.
     */
    public void setScale(float scale) { m_scale = scale; }

    /**
     * Move in the direction vel indicates.
     * Called internally by our moveUp/Down/Left/Right.
     */
    private void move(Vector2 vel)
    {
        Vector3 moveBy = new Vector3(vel, 0.0f);

        s_position += moveBy;
    }

    public void moveUp()    { move(new Vector2(0.0f, -kVelocity)); }
    public void moveDown()  { move(new Vector2(0.0f,  kVelocity)); }
    public void moveLeft()  { move(new Vector2(-kVelocity, 0.0f)); }
    public void moveRight() { move(new Vector2( kVelocity, 0.0f)); }
}
